import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet, httpGetFile } = service
const request = {
    //获取用户的待办事项
    gettodotasks (params) {
        return httpGet({
            url: '/flowengin/runtime/gettodotasks',
            params: {
                appId: params.appId,
                taskClass: params.taskClass,
                user: params.user
            }
        })
    },
    //获取用户的待办事项(分页)
    gettodotaskspage (params) {
        return httpPost({
            url: '/flowengin/runtime/gettodotaskspage',
            params: params
        })
    },
    //分页获取用户的已办事项
    getcompletetaskpagelist (params) {
        return httpPost({
            url: '/flowengin/runtime/getcompletetaskpagelist',
            params: params
        })
    },
    //获取单据审核地址
    getAuditAPIUrl (billCode) {
        return httpGet({
            url: '/config/bill/getAuditAPIUrl',
            params: {
                billCode: billCode
            }
        })
    },
    //获取所有单据
    getBills (billCode) {
        return httpGet({
            url: '/config/bill/getBills',
            params: {
                billCode: billCode
            }
        })
    },
}
export default request
